<?php
/**
 * Created by PhpStorm.
 * Author:王晓云
 * Date: 2017/12/25 0025
 * Time: 23:46
 */

namespace app\admin\model;


use think\Model;

class product extends Model
{
   protected $autoWriteTimestamp="datetime";
   public function productCat(){
       return $this->hasOne("product_cat","id");
   }
}